Skip to content

Test: Add unit tests for EnvironmentManager closes #4#8

Open
Parthivsurya wants to merge 1 commit intomidhunann:mainfrom
Parthivsurya:feature/environment-tests
Open

Test: Add unit tests for EnvironmentManager closes #4#8
Parthivsurya wants to merge 1 commit intomidhunann:mainfrom
Parthivsurya:feature/environment-tests

Conversation

@Parthivsurya
Copy link
Copy Markdown
Contributor

No description provided.

@Devpool-soc
Copy link
Copy Markdown
Collaborator

Hey @Parthivsurya! Thank you for opening a pull request. Make sure to tag the maintainers and link the issue you are solving in your pull-request description if you have not already and they'll review as soon as possible.

@Parthivsurya
Copy link
Copy Markdown
Contributor Author

@midhunann

@midhunann
Copy link
Copy Markdown
Owner

Please provide me with a brief concise description of the changes that you have made. @Parthivsurya

@Parthivsurya
Copy link
Copy Markdown
Contributor Author

This PR adds a new test suite for EnvironmentManager to ensure the reliability of the environment detection logic.

Changes:

  • Created src/test/environment.test.ts.
  • Added tests to verify:
    • EnvironmentManager singleton consistency.
    • checkRequiredTools returns the expected structure.
    • validateEnvironment executes successfully against the current workspace without errors.

Purpose:
To improve test coverage and prevent regressions in tool detection (ghci, stack, etc.).

@Parthivsurya
Copy link
Copy Markdown
Contributor Author

@midhunann

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants